package day20170407;

public class FunctionDemo {
	public static void main(String[] args) {
		int count = 0;
		for(int i = 1; i<=40 ;i++){
			if(i%2 == 0){
				count = 0;
				for(int k = 1; k<=4; k++){
					System.out.print("-|");
					count++;
				}
				if(count == 4){
					System.out.println();
				}
			}else{
				count = 0;
				for(int k = 1; k<=4; k++){
					System.out.print("|-");
					count++;
				}
				if(count == 4){
					System.out.println();
				}
			}
		}
	}
}
